<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>翻转数组</title>
			<script>
				function fzarr(arr){
					var newArr = [];
					for (var i = 0; i < arr.length; i++) {
					    newArr[i] = arr[arr.length - i - 1];
					}
						return newArr;
					}
				var arrq = fzarr([1,5,2,5,26,6,4]);
				console.log(arrq);
			</script>
	</head>
	<body>
		<h1>翻转数组</h1>
	</body>
</html>
